package com.demo.test.pages;

import org.openqa.selenium.By;

/**
 * @author Young
 * @description 首页面元素定位声明
 * */
public class RolePage {
	

	 /**跳转iframe*/
		public static final By ROLE_IFRAME = By.xpath("//iframe[@class='panel-iframe']");
		/** 点击新增按钮*/
		public static final By ROLE_SAVE = By.xpath(".//*[@id='tb']/div/a[1]/span");
		/**角色名称*/
		public static final By ROLE_NAME = By.id("name");
		/**输入角色编码*/
		public static final By ROLE_CODE = By.id("roleCode");
	    /**提交按钮*/
	    public static final By ROLE_BT = By.xpath("//div[@id='dlg']/div[2]/a/span/span");
	    /**选中一条数据*/
	 	public static final By ROLE_SELECT_DATA = By.id(".//*[@id='datagrid-row-r1-2-1']/td[2]/div");
		 /**修改按钮*/
	    public static final By ROLE_UPDATE= By.xpath(".//*[@id='datagrid-row-r1-2-1']/td[2]/div");
	    /**排序*/
		public static final By ROLE_SORT = By.id("sort");
	    /**描述*/
		public static final By ROLE_TEXTAREA = By.id(".//*[@id='mainform']/table/tbody/tr[4]/td[2]/textarea");
		 /**删除*/
		public static final By ROLE_DELETE = By.id(".//*[@id='tb']/div/a[2]/span");
	
	
}
